
import { Injectable } from '@angular/core';
import { ViewModel, NgCommand } from '@farris/devkit';
import { Observable } from 'rxjs';

@Injectable()
export class LeftTreeGridComponentViewmodel extends ViewModel {
    public bindingPath = '/';
    public dom = {};
    @NgCommand({
        name: 'LoadSubList1',
        params: {
            fid: '{DATA~/#{left-tree-grid-component}/id}',
            frameId: 'right-data-grid-component'
        },
        paramDescriptions: {
            fid: { type: 'string' },
            frameId: { type: 'string' }
        }
    })
    public LoadSubList1(commandParam?: any): Observable<any> { return; }

    @NgCommand({
        name: 'LoadNavTree1',
        params: {
            filter: '',
            sort: ''
        },
        paramDescriptions: {
            filter: { type: 'string' },
            sort: { type: 'string' }
        }
    })
    public LoadNavTree1(commandParam?: any): Observable<any> { return; }

    @NgCommand({
        name: 'lefttreegridcomponentviewmodelLoadFullTreeChildren1',
        params: {
            commandName: 'lefttreegridcomponentviewmodelloadFullTree1',
            frameId: 'left-tree-grid-component'
        },
        paramDescriptions: {
            commandName: { type: 'string' },
            frameId: { type: 'string' }
        }
    })
    public lefttreegridcomponentviewmodelLoadFullTreeChildren1(commandParam?: any): Observable<any> { return; }

    @NgCommand({
        name: 'lefttreegridcomponentviewmodelloadFullTree1',
        params: {
            virtualPropertyName: 'zhijianzzfield',
            fullTreeType: '0',
            loadType: '1',
            currentId: '',
            filters: '[{"filterField":"sszz","value":"zhijianzzfield","lbracket":"","rbracket":"","relation":"2","compare":"6","expresstype":0},{"filterField":"sszz","value":"zhijianzzfield","lbracket":"","rbracket":"","relation":"2","compare":"7","expresstype":0},{"filterField":"sszz","value":"zhijianzzfield","lbracket":"","rbracket":"","relation":0,"compare":"8","expresstype":0}]',
            frozenCurrentRow: 'true'
        },
        paramDescriptions: {
            virtualPropertyName: { type: 'string' },
            fullTreeType: { type: 'string' },
            loadType: { type: 'string' },
            currentId: { type: 'string' },
            filters: { type: 'string' },
            frozenCurrentRow: { type: 'string' }
        }
    })
    public lefttreegridcomponentviewmodelloadFullTree1(commandParam?: any): Observable<any> { return; }

}